

<div class="conteudo">
<div class="alinha-criarnoticia">
    
    <div class="titu-criarnoticia">Editar página</div>
    <form name="input" action="<?php echo base_url('meu_painel_de_administracao/pagina/salvar_principal/'.$pg.'/'.$id); ?>" method="POST">
        
<?php
//// ---------- -------- ------ Area para validação de erros ---------- --------------- ------------- ------------------ --------- --------- ---------
echo validation_errors('<center><div class="aviso" style="width:100%;background-color:#FFFFCC;
                        font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif;height:50px;
                        line-height:50px;text-align:center;z-index:999; position:absolute; "><span style="color:red; 
                        text:center">','</span></div></center><BR>');
//// ---------- -------- ------ FIM Area para validação de erros ---------- --------------- ------------- ------------------ --------- --------- ---------
?>
        
        <?php
        foreach ($registro as $pag){
        ?>

        <div class="campo1-criarnoticia"><input type="text" name="nome_pag" value="<?php if(isset($nnome_pag)){echo $nnome_pag;}else{echo $pag->pag_nome;}?>" maxlength="25"/></div>
        <div class="descricao-criarnoticia"><textarea class="ckeditor" name="texto_pag"><?php if(isset($nnome_pag)){echo $ntexto_pag;}else{echo $pag->pag_texto;}?></textarea></div>

        <?php
        }
        ?>   

        <div class="criar-criarnoticia"><input type="image" src="<?php echo base_url('assets/adm/imagens/salvar.png')?>" value="submit" width="61" height="21"></a></div>
        <div class="cancelar-criarnoticia"><a href="<?php echo (base_url("meu_painel_de_administracao/pagina/index/".$pg)); ?>"><img src="<?php echo base_url('assets/adm/imagens/cancelar.png')?>" width="67" height="21" /></a></div>
    
    </form>
<!--alinha-criarnoticia-->
</div>

<!--conteudo-->
</div>

<div class="clear"></div>
